﻿
    function ajaxFileUpload() {
        alert("D");
    
     //var handlerUploadUrl = ;
        $("#divLoader").ajaxStart(function () {
            $(this).show();
        }).ajaxComplete(function () {
            $(this).hide();
        });
        $.ajaxFileUpload(
       {
     
           url: '~/ajaxhandler/administration/catalog/Positionhandler.ashx")',
           secureuri: false,
           fileElementId: 'fuProfilePicUpload',
           dataType: 'json',
           data: { name: 'logan', id: 'id' },
           success: function (data, status) {
               if (typeof (data.error) != 'undefined') {
                   if (data.error != '') {
                       alert(data.error);
                   } else {
                       alert("Uploaded Successfully");
                   }
               }
           },
           error: function (data, status, e) {
               alert(e);
           }
       }
   )
        return false;
    }
